class_body = """
def getting(self):
    print("Hello Student")
    
def jump(self):
    print("jump")
"""
class_dict = {}
exec(class_body, globals(), class_dict)
Student = type("Student", (object,), class_dict)

c = Student()
c.getting()
c.jump()